package com.topchain.licenceverify.intfs;

import com.topchain.licenceverify.exception.SignException;

import java.security.PublicKey;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2023/4/11 15:42
 */
public interface ISign {
    /**
     * 数据验签
     * @param data
     * @param publicKey
     * @param signature
     * @return
     */
    boolean verify(byte[] data, PublicKey publicKey, byte[] signature, String signatureAlgorithm) throws SignException;

}
